# while嵌套，在满足外层while后，进行里层while。
# num = 1
# while num <= 5:
#  	print(num * '*')
#  	num = num + 1

# i = 1

# while i <= 5:
# j必须定义到内部，如果定义到外部，就不能被执行。
	# j = 1
	# while j <= 10:
	# 	print("*",end="")
	# 	j = j + 1
	# print("")
	# i = i + 1

i = 1

while i <= 5:
	j = 1
	while j <= i:
		print('*', end='')
		j = j + 1
	print('')
	i = i + 1
	